1 package edu.jiangxin.apktoolbox.file.password.recovery.checker.thirdparty;
2
3 import edu.jiangxin.apktoolbox.utils.Constants;
4
5
6
7
8
9 public final class ThirdPartyRarChecker extends AbstractThirdPartyChecker {
10 @Override
11 public String[] getFileExtensions() {
12 return new String[]{"rar"};
13 }
14
15 @Override
16 public String getFileDescription() {
17 return "*.rar";
18 }
19
20 @Override
21 public String getDescription() {
22 return "ThirdPartyRarChecker(Using Rar.exe)";
23 }
24
25 @Override
26 public String getToolPath() {
27 return conf.getString(Constants.RAR_PATH_KEY);
28 }
29
30 @Override
31 public boolean isFiltered(String password) {
32 return false;
33 }
34
35 @Override
36 public String getCmd(String password) {
37 String target = file.getAbsolutePath();
38 return String.format("%s t -p\"%s\" \"%s\"", toolPath, password, target);
39 }
40 }